package collection;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

public class Demo {
    public static void main(String[] args) {
//        List<Integer> list = new ArrayList<>();
        List<Integer> list = new LinkedList<>();
        for(int i=0;i<10000000;i++){
            list.add(i);
        }
        long start = System.currentTimeMillis();
        list.add(5000254,666);
        long end = System.currentTimeMillis();
        System.out.println("耗时:"+(end-start)+"ms");

    }
}
